﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iOSRemoteConnector
{
    class SurfaceBridge
    {



        Dictionary<int, String> deviceTags;

        public SurfaceBridge()
        {

            //(TODO)Set the fileHandler delegate in each of the connector iOSDevices



            //Setup Tag -> iOS Device Mapping

            deviceTags = new Dictionary<int, String>();

            deviceTags.Add(1, "8721CA1D-1528-58C2-91CD-3A75373F2764");






        }


        public void IOSDevicePlacedDown(int iOSTagValue) 
        {

            String iOSDeviceIdentification = deviceTags[iOSTagValue];


            iOSDevice dev = Devices.GetDevice(iOSDeviceIdentification);
        
            MethodCall call = new MethodCall("onIOSDevicePlacedDown:");

            dev.SendCall(call); 


        }

        public void RequestFullMovie(int iOSTagValue, String fileNameNoExtension)
        {

            String iOSDeviceIdentification = deviceTags[iOSTagValue];


            iOSDevice dev = Devices.GetDevice(iOSDeviceIdentification);

            MethodCall call = new MethodCall("onRequestFullMovie: messageID:");


            call.AddStringParameterToXml(fileNameNoExtension);

            dev.SendCall(call); 


        }



    }
}
